home *** CD-ROM | disk | FTP | other *** search
- on exitFrame
- global g_detect_mot, g_dico_current_letter, g_dico_cast_def, g_dico_sprite_def, g_dico_current_mot, g_dico_detect_mot, g_dico_carte_liste
- set val to g_dico_detect_mot + 1
- if val <= 9 then
- set ref to numToChar(g_dico_current_letter + 65) & "0" & string(val)
- else
- set ref to numToChar(g_dico_current_letter + 65) & string(val)
- end if
- set cas to "D"
- repeat with count = 1 to count(g_dico_carte_liste)
- if getAt(getAt(g_dico_carte_liste, count), 1) = ref then
- set cas to getAt(getAt(g_dico_carte_liste, count), 2)
- if cas = "A" then
- set ax to getAt(getAt(g_dico_carte_liste, count), 3)
- set ay to getAt(getAt(g_dico_carte_liste, count), 4) + 27
- end if
- end if
- end repeat
- puppetSprite(46, 0)
- updateStage()
- if cas = "A" then
- set num to the number of member (ref & "AR.PCT")
- set the regPoint of cast num to point(0, 0)
- puppetSprite(46, 1)
- set the castNum of sprite 46 to num
- set the locH of sprite 46 to ax
- set the locV of sprite 46 to ay
- end if
- set cx to 0
- set cy to 0
- set setpoint to 0
- if cas = "D" then
- set num to the number of member (ref & "D.RTF")
- set cx to 20
- set cy to 20
- else
- if cas = "E" then
- set num to the number of member "SP.PCT"
- set setpoint to 1
- else
- if cas = "F" then
- set num to the number of member "FR.PCT"
- set setpoint to 1
- else
- if cas = "P" then
- set num to the number of member "PA.PCT"
- set setpoint to 1
- else
- if cas = "A" then
- set num to the number of member "AR.PCT"
- set setpoint to 1
- end if
- end if
- end if
- end if
- end if
- set g_dico_cast_def to num
- if setpoint = 1 then
- set the regPoint of cast g_dico_cast_def to point(0, 0)
- end if
- puppetSprite(g_dico_sprite_def, 1)
- set the castNum of sprite g_dico_sprite_def to g_dico_cast_def
- set the locH of sprite g_dico_sprite_def to cx
- set the locV of sprite g_dico_sprite_def to cy
- set g_dico_current_mot to g_dico_detect_mot
- go(1)
- end
-